// src/api/MaintenanceRecord/quanmianjc.js
import request from '@/utils/request';

export function selectAll() {
  return request({
    url: `/MaintenanceRecord/quanmianjc/selectAll`,
    method: 'get'
  });
}

export function addQuanmianjc(data) {
  return request({
    url: `/MaintenanceRecord/quanmianjc/add`,
    method: 'post',
    data: data
  });
}

export function updateQuanmianjc(qmjcid, data) {
  return request({
    url: `/MaintenanceRecord/quanmianjc/update/${qmjcid}`,
    method: 'put',
    data: data
  });
}

// 删除（逻辑删除）
export function deleteQuanmianjc(qmjcid) {
  return request({
    url: `/MaintenanceRecord/quanmianjc/delete/${qmjcid}`,
    method: 'delete'
  });
}

export function downloadQuanmianjc() {
  return request({
    url: `/MaintenanceRecord/quanmianjc/download`,
    method: 'GET',
    responseType: 'blob'
  });
}